package com.cxs.dto;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/*
 * @Author:cxs
 * @Date:2021/10/9  16:47
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
public class NewsDTO {

    private String title;

    @NotNull(message = "页码不能为空")
    @Min(value = 1,message = "页码岂能小于1")
    private Integer pageNum;

    @NotNull(message = "每页条数不能为空")
    @Min(value = 1,message = "每页显示条数岂能小于1")
    private Integer pageSize;
}
